package cn.gson.fengboot.model.pojos;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
public class Lshenpicb {
    private int spcbId;
    private Integer spId2;
    private String shenpilx;
    private String shenpiren;
    private Timestamp shenpitime;

    @Id
    @Column(name = "spcb_id")
    public int getSpcbId() {
        return spcbId;
    }

    public void setSpcbId(int spcbId) {
        this.spcbId = spcbId;
    }

    @Basic
    @Column(name = "sp_id2")
    public Integer getSpId2() {
        return spId2;
    }

    public void setSpId2(Integer spId2) {
        this.spId2 = spId2;
    }

    @Basic
    @Column(name = "shenpilx")
    public String getShenpilx() {
        return shenpilx;
    }

    public void setShenpilx(String shenpilx) {
        this.shenpilx = shenpilx;
    }

    @Basic
    @Column(name = "shenpiren")
    public String getShenpiren() {
        return shenpiren;
    }

    public void setShenpiren(String shenpiren) {
        this.shenpiren = shenpiren;
    }

    @Basic
    @Column(name = "shenpitime")
    public Timestamp getShenpitime() {
        return shenpitime;
    }

    public void setShenpitime(Timestamp shenpitime) {
        this.shenpitime = shenpitime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Lshenpicb lshenpicb = (Lshenpicb) o;
        return spcbId == lshenpicb.spcbId &&
                Objects.equals(spId2, lshenpicb.spId2) &&
                Objects.equals(shenpilx, lshenpicb.shenpilx) &&
                Objects.equals(shenpiren, lshenpicb.shenpiren) &&
                Objects.equals(shenpitime, lshenpicb.shenpitime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(spcbId, spId2, shenpilx, shenpiren, shenpitime);
    }
}
